package thread;

public class ThreadTest {


    private static class TestThread extends Thread {

        @Override
        public void run() {
            System.out.println("1");
            try {
                Thread.sleep(5000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println("4");
        }
    }

    public static void main(String[] args) {
        System.out.println("2");
        TestThread testThread = new TestThread();
        testThread.run();
        System.out.println("3");

    }

}
